clear
set mem 10000m
set more off 

cd "C:\Users\lzeng\Dropbox\Reseach\Soccer project\Gilje Taillard Zeng_Replication"

/*Import the dataset for the financial analysis*/
use Financial_Analysis_Data.dta

/*Figure 1: Relegation, revenues, and wages*/
/*Obtain coefficient estimates that are used to generate Figure 1*/

areg Revenue_cpi pre3##Treated pre2##Treated pre1##Treated post1##Treated post2##Treated post3##Treated i.idRelegation, absorb(RelegationEvent) robust
outreg2 using Figure1.csv, keep(pre3#Treated pre2#Treated pre1#Treated post1#Treated post2#Treated post3#Treated) adjr2 sdec(2) bdec(3) replace

areg Wages_cpi pre3##Treated pre2##Treated pre1##Treated post1##Treated post2##Treated post3##Treated i.idRelegation, absorb(RelegationEvent) robust
outreg2 using Figure1.csv, keep(pre3#Treated pre2#Treated pre1#Treated post1#Treated post2#Treated post3#Treated) adjr2 sdec(2) bdec(3)
